package com.hbu.product.hbumallproduct.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hbu.product.hbumallproduct.vo.AttrVO;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * ????&???Է???????
 * 
 * @author zhaoxiaohan
 * @email 13315217827@163.com
 * @date 2022-10-27 22:15:39
 */
@Data
@TableName("pms_attr_attrgroup_relation")
@NoArgsConstructor
public class AttrAttrgroupRelationEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	private Long id;

	private Long attrId;

	private Long attrGroupId;

	private Integer attrSort;

	private Long catelogId;

	public AttrAttrgroupRelationEntity(AttrVO attrVo){
		this.attrId = attrVo.getAttrId();
		this.attrGroupId = attrVo.getAttrGroupId();
		this.catelogId = attrVo.getCatelogId();
	}



}
